import request from '@/axios'

export function getSaleChance() {
    return request({
        url: '/SalesChance/findSalesChance',
        method: 'get'
    })
}

export function insertSaleChance(salesChance) {
    return request({
        url: '/SalesChance/insert',
        method: 'post',
        params: salesChance
    })
}

export function findById(id) {
    return request({
        url: '/SalesChance/' + id,
        method: 'get',
    })
}
export function updateSaleChance(saleChance) {
    return request({
        url: '/SalesChance/edit',
        method: 'put',
        params:saleChance
    })
}
export function deleteChance(id) {
    return request({
        url: '/SalesChance/delete/'+id,
        method: 'delete',
    })
}